import { createApp } from 'vue'
import { createPinia } from 'pinia'
import persist from 'pinia-plugin-persistedstate'
import App from './App.vue'
import router from './router'

import 'virtual:svg-icons-register'
import '@/style/index.scss'
import gloablComponent from '@/components'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import '@/style/element.scss'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

const app = createApp(App)

app.use(createPinia().use(persist))
app.use(router)
app.use(gloablComponent)
app.use(ElementPlus, {
  locale: zhCn
})

app.mount('#app')
